<?php
/**
 * Notes:
 * User: wudg <544038230@qq.com>
 * Date: 2025/3/31 14:12
 */

namespace App\Components\Logs;


use Hyperf\Context\ApplicationContext;
use Hyperf\Logger\LoggerFactory;

class LogAgent
{
    public static function getInstance(string $group='default',string $type='log')
    {

        return ApplicationContext::getContainer()->get(LoggerFactory::class)->get($type,$group);
    }


    public static function __callStatic($name,$arguments)
    {
        self::getInstance()->$name(...$arguments);
    }
}